﻿@model blacksoft.Models.ART_Venta_Edit

@{
    ViewBag.Title = "Edit";
}

@{
    Layout = "~/Views/Shared/_LayoutVentas.cshtml";
}

@*Depuración*@
@if (null != TempData["alertMessage"])
{
    <script type="text/javascript">
        alert("@TempData["alertMessage"]");
    </script>
}


<div class="block big">
    <div class="titlebar">
        <h3>Modificar Venta</h3>
    </div>
    <div class="block_cont">
        @using (Html.BeginForm())
        {
            @Html.AntiForgeryToken()

            <div class="form">

                @Html.ValidationSummary(true)
                @Html.HiddenFor(model => model.IDART_Venta_Edit)

                <div class="form-row">
                    @Html.LabelFor(model => model.IDReserva, "IDReserva", new { @class = "control-label col-md-2" })
                    @Html.TextBoxFor(mode => Model.IDReserva, new { @class = "input", @style = "width: 290px;", @disabled = "disabled" })
                    @Html.HiddenFor(model => model.IDReserva)
                    @Html.ValidationMessageFor(model => model.IDReserva)
                </div>

                <div class="form-row">
                    @Html.LabelFor(model => model.FechaPago, new { @class = "control-label col-md-2" })
                    @Html.TextBoxFor(model => model.FechaPago, new { @class = "input", @type = "date", @disabled = "disabled", @style = "width: 290px;" })
                    @Html.HiddenFor(model => model.FechaPago)
                    @Html.ValidationMessageFor(model => model.FechaPago)
                </div>

                <div class="form-row">
                    @Html.LabelFor(model => model.IDNotaCredito, "IDNotaCredito", new { @class = "control-label col-md-2" })
                    <div class="col-md-10">
                        @Html.TextBoxFor(mode => Model.IDNotaCredito, new { @class = "input", @style = "width: 290px;", @disabled = "disabled" })
                        @Html.HiddenFor(model => model.IDNotaCredito)
                        @Html.ValidationMessageFor(model => model.IDNotaCredito)
                    </div>
                </div>

                <div class="form-row">
                    @Html.LabelFor(model => model.MontoNotaCredito, new { @class = "control-label col-md-2" })

                    @Html.TextBoxFor(model => model.MontoNotaCredito, new { @class = "input", @style = "width: 290px;", @disabled = "disabled" })
                    @Html.HiddenFor(model => model.MontoNotaCredito)
                    @Html.ValidationMessageFor(model => model.MontoNotaCredito)
                </div>

                <div class="form-row">
                    @Html.LabelFor(model => model.MedioPago, new { @class = "control-label col-md-2" })
                    <div class="col-md-10">
                        @Html.TextBoxFor(model => model.MedioPago, new { @class = "input", @style = "width: 290px;", @disabled = "disabled" })
                        @Html.HiddenFor(model => model.MedioPago)
                        @Html.ValidationMessageFor(model => model.MedioPago)
                    </div>
                </div>

                <div class="form-row">
                    @Html.LabelFor(model => model.MontoEfectivo, new { @class = "control-label col-md-2" })
                    <div class="col-md-10">
                        @Html.TextBoxFor(model => model.MontoEfectivo, new { @class = "input", @style = "width: 290px;", @disabled = "disabled" })
                        @Html.HiddenFor(model => model.MontoEfectivo)
                        @Html.ValidationMessageFor(model => model.MontoEfectivo)
                    </div>
                </div>

                <div class="form-row">
                    @Html.LabelFor(model => model.MontoTarjeta, new { @class = "control-label col-md-2" })
                    @Html.TextBoxFor(model => model.MontoTarjeta, new { @class = "input", @style = "width: 290px;", @disabled = "disabled" })
                    @Html.HiddenFor(model => model.MontoTarjeta)
                    @Html.ValidationMessageFor(model => model.MontoTarjeta)
                </div>

                <div class="form-row">
                    @Html.LabelFor(model => model.MontoDescuento, new { @class = "control-label col-md-2" })

                    @Html.TextBoxFor(model => model.MontoDescuento, new { @class = "input", @style = "width: 290px;", @disabled = "disabled" })
                    @Html.HiddenFor(model => model.MontoDescuento)
                    @Html.ValidationMessageFor(model => model.MontoDescuento)

                </div>

                <div class="form-row">
                    @Html.LabelFor(model => model.Subtotal, new { @class = "control-label col-md-2" })

                    @Html.TextBoxFor(model => model.Subtotal, new { @class = "input", @style = "width: 290px;", @disabled = "disabled" })
                    @Html.HiddenFor(model => model.Subtotal)

                </div>

                <div class="form-row">
                    @Html.LabelFor(model => model.IGV, new { @class = "control-label col-md-2" })

                    @Html.TextBoxFor(model => model.IGV, new { @class = "input", @style = "width: 290px;", @disabled = "disabled" })
                    @Html.HiddenFor(model => model.IGV)
                    @Html.ValidationMessageFor(model => model.IGV)

                </div>

                <div class="form-row">
                    @Html.LabelFor(model => model.Total, new { @class = "control-label col-md-2" })

                    @Html.TextBoxFor(model => model.Total, new { @class = "input", @style = "width: 290px;", @disabled = "disabled" })
                    @Html.HiddenFor(model => model.Total)
                    @Html.ValidationMessageFor(model => model.Total)

                </div>

                <div class="form-row">
                    @Html.LabelFor(model => model.Vuelto, new { @class = "control-label col-md-2" })

                    @Html.TextBoxFor(model => model.Vuelto, new { @class = "input", @style = "width: 290px;", @disabled = "disabled" })
                    @Html.HiddenFor(model => model.Vuelto)
                    @Html.ValidationMessageFor(model => model.Vuelto)

                </div>

                <div class="form-row">
                    @Html.LabelFor(model => model.Estado, new { @class = "control-label col-md-2" })

                    @Html.TextBoxFor(model => model.Estado, new { @class = "input", @disabled = "disabled", @style = "width: 290px;" })
                    @Html.HiddenFor(model => model.Estado)
                    @Html.ValidationMessageFor(model => model.Estado)

                </div>

                <div style="padding-top:50px">
                    <div class="titlebar">
                        <h3>ELIMINAR PASAJES</h3>
                    </div>

                    <table style="background: #363D47">
                        <tr>
                            <td>
                                @Html.TextBox("ELIMINAR", "ELIMINAR", new { @style = "width:70px; color: white;background:#363D47; border: 0px solid #000000", @disabled = "disabled" })
                            </td>
                            <td>
                                @Html.TextBox("DNI", "DNI", new { @style = "width:70px;color: white;background:#363D47; border: 0px solid #000000", @disabled = "disabled" })
                            </td>
                            <td>
                                @Html.TextBox("Apellido Paterno", "Apellido Paterno", new { @style = "width:130px;color: white;:#363D47;background:#363D47; border: 0px solid #000000", @disabled = "disabled" })
                            </td>
                            <td>
                                @Html.TextBox("Apellido Materno", "Apellido Materno", new { @style = "width:130px;color: white;background:#363D47; border: 0px solid #000000", @disabled = "disabled" })
                            </td>
                            <td>
                                @Html.TextBox("Nombre", "Nombre", new { @style = "width:70px;background:#363D47; color: white;border: 0px solid #000000", @disabled = "disabled" })
                            </td>
                            <td>
                                @Html.TextBox("NroAsiento", "NroAsiento", new { @style = "width:70px;background:#363D47;color: white; border: 0px solid #000000", @disabled = "disabled" })
                            </td>
                            <td>
                                @Html.TextBox("Monto de Costo", "Monto de Costo", new { @style = "width:130px; background:#363D47;color: white; border: 0px solid #000000", @disabled = "disabled" })
                            </td>
                            <td>
                                @Html.TextBox("Monto de Descuento", "Monto de Descuento", new { @style = "width:130px;color: white; background:#363D47;border: 0px solid #000000", @disabled = "disabled" })
                            </td>
                            <td>
                                @Html.TextBox("Monto Total Pagado", "Monto Total Pagado", new { @style = "width:130px;color: white; background:#363D47; border: 0px solid #000000", @disabled = "disabled" })
                            </td>
                            <td>
                                @Html.TextBox("Estado", "Estado", new { @style = "width:130px;color: white; background:#363D47; border: 0px solid #000000", @disabled = "disabled" })
                            </td>
                        </tr>

                    </table>
                    @Html.EditorFor(model => model.Pasajes)
                </div>

                <br />

                <div class="form-group">
                    <input type="submit" value="Guardar" class="btn btn-default" />
                    <br />
                    @Html.ActionLink("Regresar al listado", "Index")
                </div>
            </div>
        }
    </div>
</div>
